package com.chinasoft.tw.service.hly;

import com.chinasoft.tw.pojo.Info;
import com.chinasoft.tw.service.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class HuangLiYun implements TrueWord {
    String name;
    List<String> wordList = new ArrayList<>();
    Random random = new Random();

    public HuangLiYun(){
        this.name="黄莉匀";
        wordList.add("滑雪");
        wordList.add("爬山");
        wordList.add("maomi");
    }
    @Override
    public Info getTrueWord() {
        int index=random.nextInt(wordList.size());
        Info info=new Info(name,wordList.get(index));
        return info;
    }
}
